package org.bigjava.novelplatform.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.bigjava.novelplatform.mapper.BookRackMapper;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

//获取章节内容的vo
@Data
public class ChapterOrderVo {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 是否购买
     * true已购买
     * false 未购买
     * null 免费
     */
    private Boolean purchase;
    /**
     * 书籍id
     */
    private Integer bookId;

    /**
     * 章节排序
     */
    private Integer chapterOrder;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 章节标题
     */
    @Length(max = 30)
    private String title;

    /**
     * 段落数
     */
    private Integer paragraphCount;

    /**
     * 字数
     */
    private Integer wordCount;

    /**
     * 存放章节内容
     *
     */

    private String chapterconten;

}
